package com.edisoncgh.hw06;

import com.edisoncgh.hw06.entity.province;

public class judge {
    public int doJudge(province prov) {
        int index = prov.getTotal_confirmed();
        if (index > 2000) {
            return 1;
        } else if (index > 1300) {
            return 2;
        } else if (index > 800) {
            return 3;
        } else if (index > 500) {
            return 4;
        } else if (index > 200) {
            return 5;
        } else if (index > 50) {
            return 6;
        } else {
            return 7;
        }
    }
}
